const staticColumns = [
  {
    title: "任务名 ",
    dataIndex: "name",
    width: 80,
    align: "center",
  },
  {
    title: "公司",
    dataIndex: "company",
    width: 80,
    align: "center",
  },
  {
    title: "类型名称",
    dataIndex: "flowTypeName",
    width: 80,
    align: "center",
  },
  {
    title: "间隔时间",
    dataIndex: "intervalTime",
    width: 80,
    align: "center",
  },
  {
    title: "提前发送时间",
    dataIndex: "leadTime",
    width: 80,
    align: "center",
  },
  {
    title: "发送内容",
    dataIndex: "details",
    width: 80,
    align: "center",
  },
  {
    title: "操作",
    dataIndex: "options",
    align: "center",
    width: 80,
    scopedSlots: { customRender: "options" },
  },
];
const staticFormData = [
  {
    dataIndex: "id",
    type: "input",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "ID",
    required: false,
    colSpan: "0",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "company",
    type: "input",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "公司ID",
    required: true,
    colSpan: "0",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "flowTypeCode",
    type: "selectUrl",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "流程",
    urlName: "getFlowType",
    associationDataIndex: "company",
    required: true,
    colSpan: "24",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "name",
    type: "input",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "任务名",
    required: true,
    colSpan: "24",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "intervalTime",
    type: "selectx",
    formRoleData: [
      {
        label: "1小时",
        roleName: "1小时",
        value: 1,
        roleId: 1,
      },
      {
        label: "2小时",
        roleName: "2小时",
        value: 2,
        roleId: 2,
      },
      {
        label: "3小时",
        roleName: "3小时",
        value: 3,
        roleId: 3,
      },
      {
        label: "4小时",
        roleName: "4小时",
        value: 4,
        roleId: 4,
      },
      {
        label: "6小时",
        roleName: "6小时",
        value: 6,
        roleId: 6,
      },
      {
        label: "8小时",
        roleName: "8小时",
        value: 8,
        roleId: 8,
      },
      {
        label: "12小时",
        roleName: "12小时",
        value: 12,
        roleId: 12,
      },
      {
        label: "24小时",
        roleName: "24小时",
        value: 24,
        roleId: 24,
      },
    ],
    sgRolesData: [],
    data: [],
    label: "间隔时间",
    required: true,
    colSpan: "24",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "leadTime",
    type: "selectUrl",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "提前发送时间",
    urlName: "getLeadTime",
    associationDataIndex: "intervalTime",
    required: true,
    colSpan: "24",
    mode: "",
    disabled: false,
  },
  {
    dataIndex: "details",
    type: "input",
    formRoleData: [],
    sgRolesData: [],
    data: [],
    label: "发送内容",
    required: true,
    colSpan: "24",
    mode: "",
    disabled: false,
  },
];
export { staticColumns, staticFormData };
